package org.javastuff.mano;

public class DispThread extends Thread {
	public String message;
public void run(){
	for (int i = 0; i < 1000; i++) {
		System.out.println(message);	
	}
	
}
public DispThread(String msg) {
	super();
	this.message = msg;
}

public static void main(String[] args) {
	DispThread dt1 = new DispThread("Hello");
	DispThread dt2 = new DispThread("World");
	dt1.start();
	dt2.start();
}
}
